package com.example.liteflow.nd;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;
import com.yomahub.liteflow.slot.Slot;
import lombok.extern.slf4j.Slf4j;

/**
 * 节点组件信息
 *
 * @author chen.an
 * @date 2024-08-14 13:48
 */
@Slf4j
@LiteflowComponent(id = "DefaultNode", name = "默认节点")
public class DefaultNode extends NodeComponent {
    @Override
    public void process() throws Exception {
        Slot slot = this.getSlot();
        log.info("DefaultNode节点组件【{}】-Node ", Thread.currentThread().threadId());
        slot.setResponseData("DefaultNode 运行接收完成");
    }
}
